package com.kingwang.training.designpattern.principles.ocp.bo;

import lombok.Data;

/**
 * 圆形
 */
@Data
public class Circle implements Shape {
    private Double radius;

    @Override
    public Double calculateArea() {
        return Math.PI * this.radius * this.radius;
    }
}
